package com.cd.form.jpa.repo;

import com.cd.form.jpa.domian.FormInstance;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;
import java.util.Optional;


/**
 * @Description create by JPA BUDDY
 * @Author lqq
 * @Date 2024/8/20 9:43
 **/
@Repository
public interface FormInstanceRepo extends JpaRepository<FormInstance, Long> {

    Optional<FormInstance> findByFormId(Long formId);

    //按照权限的ids查询
    List<FormInstance> findByFormIdIn(Collection<Long> formIds);

    //按照name like 查询
    List<FormInstance> findByNameLike(String name);






    
}
